//
//  ViewController.m
//  UI06_UIScrollView_UIPageControl
//
//  Created by Bodi on 16/6/13.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import "ViewController.h"
#import "PictureView.h"

@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    [self createPicture];
    // Do any additional setup after loading the view, typically from a nib.
}
- (void)createPicture{
    
    
    
    
    PictureView *picture = [[PictureView alloc]initWithFrame:CGRectMake(0, 0, 300, 400)];
    picture.backgroundColor = [UIColor grayColor];
    picture.center = self.view.center;
    [self.view addSubview:picture];
    [picture release];
    
    /*创建图片数组**/
    
    UIImage *image1 = [UIImage imageNamed:@"1.jpeg"];
    UIImage *image2 = [UIImage imageNamed:@"2.jpg"];
    UIImage *image3 = [UIImage imageNamed:@"3.jpg"];
    UIImage *image4 = [UIImage imageNamed:@"4.jpeg"];
    UIImage *image5 = [UIImage imageNamed:@"5.jpeg"];
    UIImage *image6 = [UIImage imageNamed:@"6.jpg"];
    picture.imageArray = @[image6,image1, image2, image3, image4, image5, image6, image1];
    
    
}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
